package com.jingdianjichi.api.subject;



import com.jingdianjichi.api.subject.entity.SpecialPracticeVO;
import com.jingdianjichi.api.subject.entity.dto.PracticeSubjectDTO;
import com.jingdianjichi.api.subject.entity.vo.PracticeSubjectDetailVO;
import com.jingdianjichi.api.subject.entity.vo.PracticeSubjectVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;


@FeignClient("jc-club-subject")
public interface SubjectClient {

    @RequestMapping("/subject/category/getSpecialPracticeContent")
    List<SpecialPracticeVO> getSpecialPracticeContent();

    /**
     * 获取套卷题目信息
     */
    @PostMapping("/subject/label/getPracticeList")
    List<PracticeSubjectDetailVO> getPracticeList(@RequestBody PracticeSubjectDTO practiceSubjectDTO);
    /**
     * 构建套卷名称,大类id
     */
    @PostMapping("/subject/category/getPracticeList")
    Map<String, Object> getPracticeName(@RequestBody PracticeSubjectDTO practiceSubjectDTO);

    /**
     * 获取题目详情
     * @param practiceSubjectDTO
     * @return
     */
    @PostMapping("/subject/getPracticeSubject")
    PracticeSubjectVO getPracticeSubject(@RequestBody PracticeSubjectDTO practiceSubjectDTO);
}
